package com.css.security.core.social.qq.connect;

import com.css.security.core.social.qq.api.QQ;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;

/**
 * QQConnectionFactory
 *
 * @author hanyx
 * @date 2019/04/14
 */
public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ> {

    /**
     * 这三个参数在应用系统配置文件中配置
     * @param providerId 服务提供商的唯一标识
     * @param appId 应用在qq互联中创建时对应第三方应用的唯一标识
     * @param appSecret
     */
    public QQConnectionFactory(String providerId, String appId,String appSecret) {
        super(providerId, new QQServiceProvider(appId,appSecret), new QQAdapter());
    }

}
